﻿@using MVCMongo.Services
@model IEnumerable<DataMongo.Entities.GroupMember>
@{
    ViewBag.Title = "MemberList";
}


<table class="table table-user table-nohead">
        <tbody>
            @foreach (var item in Model)
            {

                <tr>
                  
                    <td class="img">
                        @{
                var imageUrl = UtilityService.GetCurrentUserImage(item.MemberID);
                        }
                            @if (!string.IsNullOrEmpty(imageUrl))
                            {
                                <img src="/content/UserProfile/User/@imageUrl" alt="" />
                            }
                            else
                            {

                                <img src="~/Content/UserProfile/img/NoImage.jpg" />
                            }


                        </td>
                        <td class="user">
                            <a href="@Url.Action("UserFriendProfile", "Profile", new { friendId = item.MemberID })">
                                @UtilityService.GetCurrentUserFullName(item.MemberID)
                            </a>  
                          
                        </td>

                </tr>
            }
           
    </table>

